#ifndef YEPXML_ERROR_HPP
#define YEPXML_ERROR_HPP

#include <string>

namespace yxml
{
    using namespace std;

    /**
     * @brief An error witch occurs on reading
     **/
    class ReadingError
    {
    public:
        /**
         * @brief Constructor
         **/
        ReadingError(const string &error, int errorLine, int ccount): _error(error)
        {
            _errorLine = errorLine;
            _ccount = ccount;
        }

        /**
         * @brief Returns the error
         **/
        const string &error( void ) const
        {
            return _error;
        }

        /**
         * @brief Returns the line
         **/
        int errorLine( void ) const
        {
            return _errorLine;
        }

        /**
         * @brief Returns the ccount
         **/
        int ccount( void ) const
        {
            return _ccount;
        }


    private:
        string _error;
        int _errorLine;
        int _ccount;
    };
}

#endif // YEPXML_ERROR_HPP

